<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/inc/taglib.inc" %>
<%@ include file="/WEB-INF/inc/script.inc" %>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<base href="${base}">
    <title>中金通 | 系统管理</title>
    
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="js/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet">
    <!-- FooTable -->
    <link href="css/plugins/footable/footable.core.css" rel="stylesheet">
    <!-- Data Tables -->
    <link href="css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="css/plugins/dataTables/dataTables.responsive.css" rel="stylesheet">
    <link href="css/plugins/dataTables/dataTables.tableTools.min.css" rel="stylesheet">
    
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">
	<style type="text/css">
	.detailText
	{
	 padding:6px 12px; 
	}
	</style>
</head>

<body>

    <div id="wrapper">

    	<!-- 左侧菜单 -->
        <jsp:include page="/WEB-INF/jsp/common/main-menu.jsp"></jsp:include>

        <div id="page-wrapper" class="gray-bg">
        <div class="row border-bottom">
        <!-- 头部工具栏区 -->
        <jsp:include page="/WEB-INF/jsp/common/main-header.jsp"></jsp:include>
        </div>
            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>系统管理</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="common/platform">Home</a>
                        </li>
                        <li>
                            <a href="feedback/list">意见反馈</a>
                        </li>
                        <li class="active">
                            <strong>反馈详情</strong>
                        </li>
                    </ol>
                </div>
                <div class="col-lg-2">

                </div>
            </div>

        <div class="row" style="margin-top:10px;">
	        <div class="col-md-12">
	        <div class="tabs-container">
	        <ul class="nav nav-tabs">
	            <li >
					<a href="feedback/list">
						 反馈列表
					</a>
				</li>
				<li class="active">
					<a href="">
						 反馈详情
					</a>
				</li>
	        </ul>
				<div class="tab-content">
		              <div class="tab-pane active">
		                  <div class="panel-body">
		                      <div class="wrapper wrapper-content animated fadeInRight ecommerce">
					            <div class="row">
					                <div class="col-lg-12">
				                        <form method="post" id="addForm" enctype="multipart/form-data" action="investor/doAdd" class="form-horizontal">
									        <div class="hr-line-dashed"></div>
			                                <div class="form-group"><label class="col-sm-2 control-label">反馈人姓名</label>
			                                    <div class="col-sm-4">
			                                    	<div id="name" class="detailText">${model.investorName}</div>
			                                    	<input type="text" style="display:none;"  id="investorId" value="${model.investorId}"> 
			                                    	<input type="text" style="display:none;"  id="feedbackId" value="${model.id}"> 
			                                    </div>
			                                </div>
			                                <div class="hr-line-dashed"></div>
			                                <div class="form-group"><label class="col-sm-2 control-label">反馈时间</label>
			                                    <div class="col-sm-4" style="margin-top:6px;">
		                                   			 <c:choose>
													   <c:when test="${model.createTime == null}">--</c:when>
													   <c:otherwise><fmt:formatDate  value="${model.createTime}" pattern="yyyy年MM月dd日" /> </c:otherwise>
													 </c:choose>
			                                    </div>
			                                </div>
			                                <div class="hr-line-dashed"></div>
			                                <div class="form-group"><label class="col-sm-2 control-label">来源</label>
			                                    <div class="col-sm-4">
			                                   	 	<div   class="detailText">
			                                   	 		<c:choose>
														   <c:when test="${model.source == null}">--</c:when>
														   <c:when test="${model.source == 1}">pad 端</c:when>
														   <c:when test="${model.source == 2}">pc 端</c:when>
														   <c:otherwise>--</c:otherwise>
														</c:choose>
			                                   	 	</div>
			                                    </div>
			                                </div>
			                                <div class="hr-line-dashed"></div>
			                                <div class="form-group"><label class="col-sm-2 control-label" for="datetimepicker">反馈内容</label>
				                             	 <div class="col-sm-4">
			                                   	 	<div   class="detailText">
			                                   	 		<c:choose>
														   <c:when test="${model.content == null}">--</c:when>
														   <c:otherwise>${model.content}</c:otherwise>
														</c:choose>
			                                   	 	</div>
			                                    </div>
			                                </div>
			                                <div class="hr-line-dashed"></div>
			                                <div class="form-group"><label class="col-sm-2 control-label">状态</label>
			                                    <div class="col-sm-4">
			                                    	<div   class="detailText">
			                                    		<c:choose>
														   <c:when test="${model.reply == null}">--</c:when>
														   <c:when test="${model.reply eq true}">已解决</c:when>
														   <c:when test="${model.reply eq false}">未解决</c:when>
														</c:choose>
			                                    	</div> 
			                                   </div>
			                                </div>
			                                <div class="hr-line-dashed"></div>
			                                <div class="form-group"><label class="col-lg-2 control-label">回复内容</label>
			                                    <div class="col-sm-4"> 
			                                   		 <div   class="detailText">
			                                   		 	<c:choose>
														   <c:when test="${model.replyContent == null}">--</c:when>
														   <c:otherwise>${model.replyContent}</c:otherwise>
														</c:choose>
			                                   		 </div> 
							                    </div>
			                                </div>
			                                <div class="hr-line-dashed"></div>
			                                <div class="form-group"><label class="col-lg-2 control-label"></label>
			                                    <div class="col-sm-4"> 
			                                   		<c:if test="${model.reply eq false}">
			                                   			<c:if test="${model.submitPlatform eq false}">
			                                   				<button type="button" class="btn btn-w-m btn-warning" data-toggle="modal" data-target="#myModal">回复</button>
	                                    				</c:if>
	                                    			</c:if>
							                    </div>
			                                </div>
			                            </form>
					                </div>
					            </div>
				  			</div>
			     		</div>
			    	</div>
			   </div>
		  </div>
		</div>
        </div>
        <div class="modal inmodal" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
            <div class="modal-dialog">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">反馈回复</h4>
                            <small class="font-bold">投资人:${model.investorName}</small>
                         </div>   
	                    <div class="modal-body">
	                        <div class="form-group"><label>回复内容</label> <textarea style="resize:none;height:80px;font-family:inherit;" type="text" id="reply_content" placeholder="请输入您的回复内容" class="form-control"></textarea>
	                    	 <br/>
	                    	 <div id="time"></div>
		                   	</div>
		                    <div class="modal-footer">
		                        <button type="button" class="btn btn-white" id="dsimiss_add_relation" data-dismiss="modal">取消</button>
		                        <button type="button" id="btn_add_reply" class="btn btn-primary">确定</button>
		                    </div>
	              		</div>
              		</div>	
         	</div>
        </div>
        <!-- 底部版权 -->
        <jsp:include page="/WEB-INF/jsp/common/main-footer.jsp"></jsp:include>

        </div>
        </div>



    <!-- Mainly scripts -->
    <script src="js/jquery-2.1.1.js"></script>
    <script src="js/plugins/validate/jquery.validate.min.js"></script>
    <script src="js/plugins/jeditable/jquery.jeditable.js"></script>
	<script src="js/jquery.serialize-object.min.js" type="text/javascript"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>

    <!-- Custom and plugin javascript -->
    <script src="js/inspinia.js"></script>
    <script src="js/plugins/pace/pace.min.js"></script>
    <script src="js/plugins/jquery-ui/jquery-ui.min.js"></script>
	<script src="js/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
	
    
    <!-- Data picker -->
    <script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>
    
    <!-- Data Tables -->
    <script src="js/plugins/dataTables/jquery.dataTables.min.js"></script>
    <script src="js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="js/plugins/dataTables/dataTables.responsive.js"></script>
    <script src="js/plugins/dataTables/dataTables.tableTools.min.js"></script>
    
     <!-- 业务js -->
    <script src="js/feedback/detail.js?v=${jsVersion}"></script>
    <script src="js/feedback/list.js?v=${jsVersion}"></script>
    <script src="js/investor/utils.js?v=${jsVersion}"></script>
	<!-- FooTable -->
    <!-- Page-Level Scripts -->
    <script>
   	    
        $(document).ready(function() {
            $('#date_added').datepicker({
                todayBtn: "linked",
                keyboardNavigation: false,
                forceParse: false,
                calendarWeeks: true,
                autoclose: true
            });

            $('#date_modified').datepicker({
                todayBtn: "linked",
                keyboardNavigation: false,
                forceParse: false,
                calendarWeeks: true,
                autoclose: true
            });

        });

    </script>

</body>

</html>
